Canonical correlation

Canonical correlation captures the idea of calculating correlation between two sets of variables.

Given two vectors of random variables XX and YY (not necessarily in the same dimension), canonical-correlation analysis (CCA) aims to detect aa and bb that maximize the correlation ρ=corr(aTX,bTY)\rho = \text{corr}(a^T X, b^T Y).